# -*- mode: snippet -*-
# name: csv: read csv into dictionary
# key: dictreader@csv
# key: csv.dictreader
# contributor: Shuguang Sun
# --
with open(${1:filename}, 'r') as rf:
    csvreader = csv.DictReader(rf, delimiter=${2:","})

    for row in csvreader:
        $0